.class public Lcom/uucun/adsdk/a/a;
.super Ljava/lang/Object;


# static fields
.field public static a:Z

.field public static b:Lcom/uucun/adsdk/a/a;


# instance fields
.field public c:Ljava/lang/StringBuffer;

.field public d:Ljava/util/ArrayList;

.field private e:Ljava/util/concurrent/ConcurrentHashMap;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-boolean v0, Lcom/uucun/adsdk/a/a;->a:Z

    const/4 v0, 0x0

    sput-object v0, Lcom/uucun/adsdk/a/a;->b:Lcom/uucun/adsdk/a/a;

    return-void
.end method

.method private constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v1, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    iput-object v1, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    return-void
.end method

.method public static a()Lcom/uucun/adsdk/a/a;
    .locals 1

    sget-object v0, Lcom/uucun/adsdk/a/a;->b:Lcom/uucun/adsdk/a/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/uucun/adsdk/a/a;

    invoke-direct {v0}, Lcom/uucun/adsdk/a/a;-><init>()V

    sput-object v0, Lcom/uucun/adsdk/a/a;->b:Lcom/uucun/adsdk/a/a;

    :cond_0
    sget-object v0, Lcom/uucun/adsdk/a/a;->b:Lcom/uucun/adsdk/a/a;

    return-object v0
.end method


# virtual methods
.method public a(I)Lcom/uucun/adsdk/d/e;
    .locals 2

    const/4 v0, -0x1

    if-eq p1, v0, :cond_0

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt p1, v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v1, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/uucun/adsdk/d/e;

    move-object v0, p0

    goto :goto_0
.end method

.method public a(Lcom/uucun/adsdk/d/e;)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_2
    iget-object v0, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/uucun/adsdk/d/e;

    if-eqz p0, :cond_0

    const-string v0, "1"

    iput-object v0, p0, Lcom/uucun/adsdk/d/e;->h:Ljava/lang/String;

    goto :goto_0
.end method

.method public b()V
    .locals 5

    const/4 v4, 0x0

    invoke-virtual {p0}, Lcom/uucun/adsdk/a/a;->e()I

    move-result v0

    move v1, v4

    :goto_0
    if-ge v1, v0, :cond_1

    invoke-virtual {p0, v1}, Lcom/uucun/adsdk/a/a;->a(I)Lcom/uucun/adsdk/d/e;

    move-result-object v2

    if-eqz v2, :cond_0

    iget-object v3, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    if-eqz v3, :cond_0

    iget-object v3, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v3, 0x0

    iput-object v3, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->e:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    iget-object v1, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->length()I

    move-result v1

    invoke-virtual {v0, v4, v1}, Ljava/lang/StringBuffer;->delete(II)Ljava/lang/StringBuffer;

    return-void
.end method

.method public c()Z
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    return v0
.end method

.method public d()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public e()I
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/a;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method
